﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Collections.Specialized;

namespace Devfw.OpenAuth
{
    [Serializable()]
    public class AuthorizeResponse : NameValueCollection
    {
        public AuthorizeResponse( string query )
            : base( HttpUtility.ParseQueryString( query ) )
        {
        }

        public AuthorizeResponse( NameValueCollection nvcQuery )
            : base( nvcQuery )
        {
        }

        public string oauth_token
        {
            get
            {
                return this["oauth_token"];
            }
            set
            {
                this["oauth_token"] = value;
            }
        }

        public string oauth_verifier
        {
            get
            {
                return this["oauth_verifier"];
            }
            set
            {
                this["oauth_verifier"] = value;
            }
        }

    }
}
